package DuoTai;

public class AnimalTest {
    public static void main(String[] args) {
        Animal1 a = new cat();
        a.move();
    }
}

abstract class Animal1{
    public abstract void move();
}

class Fish1 extends Animal1{
    public void move(){
        System.out.println("游动");
    }
}

class Dog1 extends Animal1{
    public void move(){
        System.out.println("奔跑");
    }
}

class cat extends Animal1{
    public void move(){
        System.out.println("猫步");
    }
}

class bird1 extends Animal1{
    @Override
    public void move() {
        System.out.println("飞行");
    }
}
